<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0 ;
            padding: 0 ;
            list-style: none;
        }
        #box{
            width: 100%;
            height: 100%;
        }
        #box>ul{
            width: 100%;
             height: 50px;
             /* overflow: hidden; */
             background-color: #d71408;
             position: relative;
        }
        #box>ul>li{
            width: 150px;
            height: 50px;
            text-align: center;
            line-height: 50px;
            color: rgb(255, 255, 255);
            float: left;
        }
        #box>ul>li:first-child{
            margin-left: 200px;
        }
        #box>ul>li:hover{
            background-color: rgb(198, 56, 43);
            cursor: pointer;
        }
        #box>div:last-child{
            width: 100%;
            height: 500px;
            background:url("./images/工商银行叶子.jpg") no-repeat 0 0;
            background-size: 100% 500px;
            overflow: hidden;
        }
        #box form{
            width: 500px;
            height: 300px;
            margin: 70px 0 0 150px;
            background-color: transparent;
            border-radius: 10px;
        }
        #box form>p{
            font-size: 24px;
            text-align: center;
            height: 50px;
            color: #749c96;
            line-height: 50px;
            /* border-bottom: 1px solid rgb(253, 212, 212); */
        }
        #box form input{
            outline: none;
            border: none;
            width: 300px;
            height: 38px;
            font-size: 18px;border-radius: 10px;
            margin: 0 0px 0 7px;
            padding-left: 5px;
            box-sizing: border-box;
            /* vertical-align: middle; */
        }
        #box form>div{
            width: 350px;
            height: 40px;
            /* border:1px solid black ; */
            box-sizing: border-box;
            margin: 30px 0 0 50px;
            border-radius: 10px;
            
        }
        #box form>div span{
            font-size: 18px;
            /* line-height: 50px; */
            display: inline-block;
            vertical-align: baseline;
        }
        #box form button{
            display: block;
            width: 300px;
            height: 50px;
            margin: 20px auto 0;
            outline: none;
            border-radius: 5px;
            border: none;
            /* background-color: rgb(104, 235, 106); */
            background-color: #38e068;
            cursor: pointer;
            font-size: 20px;
            color: #3e3e3e;
        }
        #box>ul div{
            width: 1000px;
            background-color: #fff;
            position: absolute;
            /* left: 200px; */
            height: 0;
            min-height: 0;
            /* 明确过渡属性为 height，避免不必要的属性过渡 */
            transition: height 1s ease; 
            pointer-events: none;
        }
        #box>ul>li:first-child:hover>div{
            height: 500px;
        }
        #box>ul>li:nth-child(2):hover>div{
            height: 600px;
        }
        #box>ul>li:nth-child(3):hover>div{
            height: 350px;
        }
        #box>ul>li:nth-child(4):hover>div{
            height: 400px;
        }
        #box>ul>li:nth-child(5):hover>div{
            height: 500px;
        }



    </style>
</head>
<body>
    <div id="box">
        <ul>
            <li>账户服务
                <div>
                </div>
            </li>

            <li>存款与贷款<div>
            </div></li>
            <li>信用卡<div>
            </div></li>
            <li>外汇服务<div>
            </div></li>
            <li>投资理财<div>
            </div></li>
        </ul>
        <div>
            <form>
                <p>登录</p>
                <div><span>账号:</span><input type="text" placeholder="请输入账号"></div>
                <div><span>密码:</span><input type="请输入密码" placeholder="请输入密码"></div>
                <button>登录</button>
            </form>
        </div>
    </div>
</body>
</html>